<div class="col-xs-10 col-xs-offset-1 form-horizontal mt20">
	<div class="panel panel-defalut">
		<div class="panel-heading">
			<font face="Courier" class="" size="5">票种信息</font>
		</div>
		<div class="panel-body">
			<div class="form-group">
				<label class="col-xs-2 control-label">票种名称</label>
				<div class="col-xs-6">
					<input type="text" class="form-control" placeholder="请输入票种名称" ng-model="objt.name">
				</div>
			</div>

			<div class="form-group" ng-show="placeid === ''">
				<label class="col-xs-2 control-label">所属景区</label>
				<div class="col-xs-6">
					<!--<select class="form-control" ng-model="objt.place_code" ng-options="view.code as view.name for view in viewarr" ng-disabled="flag">
            </select>-->
					<ui-select ng-model="objt.place_code" ng-change="change(objt.place_code)" theme="bootstrap" ng-disabled="id">
						<ui-select-match placeholder="请选择一个景区">{{$select.selected.name}}</ui-select-match>
						<ui-select-choices repeat="item.code as item in viewarr | filter: $select.search">
							<span ng-bind-html="item.name | highlight: $select.search"></span>
							【<span ng-bind-html="item.code | highlight: $select.search"></span>】
						</ui-select-choices>
					</ui-select>
				</div>
			</div>

			<div class="form-group" ng-show="placeid !== ''">
				<label class="col-xs-2 control-label">所属景区</label>
				<div class="col-xs-6">
					<!--<p class="form-control-static">{{objt.placename}}-->
					<ui-select ng-model="objt.place_code" ng-change="change(obj.place_code)" theme="bootstrap" ng-disabled="id">
						<ui-select-match placeholder="请选择一个景区">{{$select.selected.name}}</ui-select-match>
						<ui-select-choices repeat="item.code as item in viewarr | filter: $select.search">
							<span ng-bind-html="item.name | highlight: $select.search"></span>
							【<span ng-bind-html="item.code | highlight: $select.search"></span>】
						</ui-select-choices>
					</ui-select>
					</p>
				</div>
			</div>

			<div class="form-group">
				<label class="col-xs-2 control-label">允许消票</label>
				<div class="col-xs-6">
					<label class="radio-inline">
			  <input type="radio" name="used_state" value="0"
			  ng-model="objt.used_state"
			  > 允许
			</label>
					<label class="radio-inline">
			  <input type="radio" name="used_state" value="1"
			  ng-model="objt.used_state"
			  > 不允许
			</label>
				</div>
			</div>

			<div class="form-group">
				<label class="col-xs-2 control-label">票种状态</label>
				<div class="col-xs-6">
					<label class="radio-inline">
			  <input type="radio" name="state" value="0"
			  ng-model="objt.state"
			  > 不可用
			</label>
					<label class="radio-inline">
			  <input type="radio" name="state" value="1"
			  ng-model="objt.state"
			  > 可用
			</label>
				</div>
			</div>

			<div class="form-group">
				<label class="col-xs-2 control-label">预订说明</label>
				<div class="col-xs-6">
						<div class="ueditor" ng-model="objt.book_info"></div>
					<!-- <textarea class="form-control" rows="3" ng-model="objt.book_info" ng-disabled="util.what == 'info'"></textarea> -->
					<!--<div class="ueditor" ng-model="objt.book_info"></div>-->
				</div>
			</div>

			<div class="form-group">
				<label class="col-xs-2 control-label">打印设置</label>
				<div class="col-xs-6">
					<table class="table table-bordered">
						<thead>
							<tr>
								<th class="col-xs-2 text-center">#</th>
								<th class="col-xs-8 text-center">名称</th>
								<th class="col-xs-2 text-center">
									<a ng-click="printadd()" class="btn" style="color: green; padding:0px;">
								<span class="glyphicon glyphicon-plus" aria-hidden="true"></span>
							</a>
								</th>
							</tr>
						</thead>
						<tbody>
							<tr ng-repeat='obj in objs'>
								<td class="text-center ">
									<p class="pt5">{{$index + 1}}</p>
								</td>
								<td class="text-center">
									<input type="text" class="form-control" placeholder="请输入打印名称" ng-model="obj.name">
								</td>
								<td class="text-center">
									<a ng-click="printdel($index)" class="btn" style="color: red; padding:0px; padding-top: 5px;">
								<span class="glyphicon glyphicon-remove" aria-hidden="true"></span>
							</a>
								</td>
							</tr>
						</tbody>
					</table>
				</div>
			</div>


			<div class="form-group">
				<label class="col-sm-2 col-xs-12 control-label">票种图片</label>
				<div class="col-sm-4 col-xs-12 ">
					<img ng-src="{{objt.img}}" width="300" height="200" ng-model="objt.img">
					<input type="file" nv-file-select uploader="uploader1" />
					<br>
					<ul class="list-group">
						<li class="list-group-item" ng-repeat="item in uploader1.queue">
							文件名: <span ng-bind="item.file.name"></span>
							<button type="button" class="btn btn-default btn-xs" ng-click="item.upload()"><span class="glyphicon glyphicon-upload"></span> 上传</button>
							<div class="progress mt10">
								<div class="progress-bar" role="progressbar" ng-style="{ 'width': uploader1.progress + '%' }"></div>
							</div>
						</li>
					</ul>
				</div>
			</div>


			<button type="button" class="btn btn-primary btn-lg btn-block" ng-click="gogo()">
    提交
    </button>

		</div>

	</div>

</div>